/**
 * Created by Administrator on 2018/11/13.
 */
;(function () {
option = {
    title: {
        text: '学习关键词',
        link: 'https://www.baidu.com/s?wd=' + encodeURIComponent('ECharts'),
        x: '5%',
        y:'4%',
        textStyle: {
            fontSize: 18,
            color:'#5ff9ff',
            fontWeight:'300'
        }

    },
    backgroundColor: 'transparent',
    tooltip: {
        show: true
    },
    toolbox: {
        feature: {
            saveAsImage: {
                iconStyle: {
                    normal: {
                        color: '#FFFFFF'
                    }
                }
            }
        }
    },
    series: [{
        name: '热点分析',
        type: 'wordCloud',
        //size: ['9%', '99%'],
        sizeRange: [14, 24],
        //textRotation: [0, 45, 90, -45],
        //rotationRange: [0, 30],
        //shape: 'circle',
        textPadding: 0,
        autoSize: {
            enable: true,
            minSize: 6
        },
        textStyle: {
            normal: {
                color: function() {
                    return 'rgb(' + [
                            Math.round(Math.random() * 255),
                            Math.round(Math.random() * 255),
                            Math.round(Math.random() * 255)
                        ].join(',') + ')';
                }
            },
            emphasis: {
                shadowBlur: 10,
                shadowColor: '#333'
            }
        },
        data: [{
            name: "Jayfee",
            value: 666
        }, {
            name: "Nancy",
            value: 520
        }]
    }]
};

var JosnList = [];
JosnList.push( {
    name: "中国梦",
    value: "223"
}, {
    name: "四个全面",
    value: "223"
}, {
    name: "五位一体",
    value: "223"
}, {
    name: "两个“一百年”",
    value: "223"
}, {
    name: "五大发展理念",
    value: "152"
}, {
    name: "四个意识",
    value: "152"
}, {
    name: "四个自信",
    value: "152"
}, {
    name: "八项规定",
    value: "112"
}, {
    name: "反“四风”",
    value: "112"
}, {
    name: "放管服",
    value: "112"
}, {
    name: "有权不可任性",
    value: "112"
}, {
    name: "双引擎",
    value: "112"
}, {
    name: "双随机、一公开",
    value: "112"
}, {
    name: "获得感",
    value: "112"
}, {
    name: "三严三实",
    value: "92"
}, {
    name: "两学一做",
    value: "92"
}, {
    name: "四个“自我”",
    value: "92"
}, {
    name: "四个铁一般",
    value: "92"
}, {
    name: "经济新常态",
    value: "92"
}, {
    name: "大众创业、万众创新",
    value: "92"
});
option.series[0].data = JosnList;
var myChart4 =echarts.init(document.getElementById('echartListWord'))
myChart4.setOption(option, true);
})()